﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace fabao.Common.Entity
{
    public class ExeMsgInfo
    {
        public string RetValue { get; set; }
        public int RetStatus { get; set; }
        public object RetData { get; set; }
        public ExeMsgInfo()
        {
            this.RetStatus = 400;
            this.RetValue = "";
            this.RetData = null;
        }
        public ExeMsgInfo(int retStatus, string retValue)
        {
            this.RetValue = retValue;
            this.RetStatus = retStatus;
        }
        public ExeMsgInfo(int retStatus, string retValue, object retData)
        {
            this.RetValue = retValue;
            this.RetStatus = retStatus;
            this.RetData = retData;
        }
    }

    public class ExeMsgInfo<T>
    {
        public string RetValue { get; set; }

        public int RetStatus { get; set; }

        public T RetData { get; set; } = default;

        public ExeMsgInfo()
        {
            this.RetStatus = 400;
            this.RetValue = "";
            this.RetData = default;
        }
        public ExeMsgInfo(int retStatus)
        {
            this.RetStatus = retStatus;
            this.RetValue = string.Empty;
            this.RetData = default;
        }
        public ExeMsgInfo(int retStatus, string retValue)
        {
            this.RetValue = retValue;
            this.RetStatus = retStatus;
            this.RetData = default;
        }
        public ExeMsgInfo(int retStatus, string retValue, T retData)
        {
            this.RetValue = retValue;
            this.RetStatus = retStatus;
            this.RetData = retData;
        }
    }
}
